package com.raising.modules.sys.service;

import com.raising.framework.service.CrudService;
import com.raising.modules.sys.dao.OlogDao;
import com.raising.modules.sys.entity.Olog;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* 操作日志 Service层
* @author gaoy
* @createTime 2018-01-17 14:17:29
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class OlogService extends CrudService<OlogDao, Olog> {
    /**
     * 批量添加记录
     * @author gaoyuan
     * @param logs
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    public int saveBatch(List<Olog> logs) {
        return dao.saveBatch(logs);
    }

}
